/***************************************************************
  Globals to paths
****************************************************************/
/* Build folder */
global dbuild "$dir/build"
global db_inp "$dbuild/inputs"
global db_out "$dbuild/outputs"
global db_scr "$dbuild/scripts"
global db_tmp "$dbuild/temp"

/* Analysis folder */
global danalysis "$dir/analysis"
global da_out "$danalysis/outputs"
global da_scr "$danalysis/scripts"
global da_tmp "$danalysis/temp"

/* Census folder */
global census_harm "$db_inp/census"

/***************************************************************
  Packages
****************************************************************/
/* The following global stores the names of the packages used in the project
to check their existance and install them if they are not */
global packages "shp2dta blindschemes stcascoh tsspell gtools parallel multishell estout ineqdeco ainequal geodist spmap"

/* Start a loop over the  */
foreach pack of global packages {

  /* Check if the package is already installed */
  cap which "`pack'"

  /* If the package is not found */
  if _rc == 111 {
    /* Install the package */
    ssc install "`pack'" , replace all
  }
}

/***************************************************************
            General settings
****************************************************************/
/* Set the scheme of colors for the figures */
set scheme plotplainblind


